projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a78643b
)
x11: Don't crash when NULL eometry hints are set
author
Benjamin Otte
<otte@redhat.com>
Wed, 31 Jul 2013 01:02:08 +0000
(
03:02
+0200)
committer
Benjamin Otte
<otte@redhat.com>
Wed, 31 Jul 2013 01:03:09 +0000
(
03:03
+0200)
Fixes crashers in gnome-panel.
gdk/x11/gdkwindow-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkwindow-x11.c
b/gdk/x11/gdkwindow-x11.c
index 52f3642ddca8100b567e915e779ab6a4cc4dc3d9..7a99d3098ba113e424ddcd4b775000646831cda2 100644
(file)
--- a/
gdk/x11/gdkwindow-x11.c
+++ b/
gdk/x11/gdkwindow-x11.c
@@
-2478,7
+2478,8
@@
gdk_x11_window_set_geometry_hints (GdkWindow *window,
toplevel = _gdk_x11_window_get_toplevel (window);
if (toplevel)
{
- toplevel->last_geometry_hints = *geometry;
+ if (geometry)
+ toplevel->last_geometry_hints = *geometry;
toplevel->last_geometry_hints_mask = geom_mask;
}